//头部显示隐藏
define(function  (require, exports, module) {
    require("../../../../database/leftData");
    function showLeft() {
        var markup = '';
        for(var i =0;i<leftList.content.length;i++){
            var hrefData = leftList.content[i].href;
            var srcJson = JSON.stringify(leftList.content[i].src[0]);
            var srcJsonEd = JSON.stringify(leftList.content[i].src[1]);
            var altJson = JSON.stringify(leftList.content[i].alt);
            if((window.location.pathname).split("/")[3] === hrefData.split("/")[5]){
                markup +="<a class='left-selected' href="+ hrefData +" style=display:>" +
                    "<span class='left-line'></span>" +
                    "<img class='left-icon' src="+srcJsonEd+" alt= "+altJson+">" + leftList.content[i].changeData+
                    "</a>"
            }else{
                markup +="<a class='left-select' href="+ hrefData +" style=display:>" +
                    "<img class='left-icon' src="+srcJson+" alt= "+altJson+">" + leftList.content[i].changeData+
                    "</a>"
            }
            $.template( "movieTemplate", markup );
        }
        $.tmpl("movieTemplate", markup).appendTo(".leftArea")
    }
    module.exports = showLeft();
})